package method;

import java.util.Scanner;

/*
在主函数中从键盘接收X, Y , Z, 3个数，编写函数计算这3个数的立方和并返回计算结果：S=X3+Y3+Z3
 */


public class jiajia {
    public static void main(String[]args){
        cube();
    }
    public static void cube(){
        Scanner input =new Scanner(System.in);
        int x=input.nextInt();
        int y=input.nextInt();
        int z=input.nextInt();
        System.out.print((x*x*x)+(y*y*y)+(z*z*z));
    }
}
